-- GENERATED SPELL FOR [Greater Anubisath Warbringer] --


function spell0_15754(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(40504,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15754', 608, 1)
end

function spell1_15754(pUnit, Event) --@Sundering Cleave,n/a--
pUnit:FullCastSpellOnTarget(17963,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15754', 30306, 1)
end

function spell2_15754(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_15754', 5276, 1)
end

function Sorts_15754(pUnit, Event)
local choix_sorts_15754 = math.random(0, 2)
if choix_sorts_15754 == 0 then
pUnit:RegisterEvent('spell0_15754', 1, 1)
end
if choix_sorts_15754 == 1 then
pUnit:RegisterEvent('spell1_15754', 1, 1)
end
if choix_sorts_15754 == 2 then
pUnit:RegisterEvent('spell2_15754', 1, 1)
end
end

function mob15754_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15754', math.random(1500, 3000), 1)
end

function mob15754_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15754_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15754_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15754, 1, 'mob15754_Action')
RegisterUnitEvent(15754, 2, 'mob15754_Leave')
RegisterUnitEvent(15754, 3, 'mob15754_Kill')
RegisterUnitEvent(15754, 4, 'mob15754_Die')
